
#include "fish_hard.h"


Fish_hard::Fish_hard():Qpixmapitem()
{

}


Fish_hard::Fish_hard(const QString FileName,QGraphicsScene*scene):Qpixmapitem(FileName,scene)
{

}


void Fish_hard::advance(int phase)
{
    if(mapToScene(0,0).y()<=0||mapToScene(0,0).x()>=2000)
        this->setPos(-300,100+rand()%1000);

    this->setPos(mapToScene(rand()%50,-rand()%10));

}

